﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;

namespace EggOfPanKu.Library.Objects
{
    public class Ancestor : Personality
    {
        #region Fields

        private string _Focus;

        #endregion

        #region Constructor
        public Ancestor(XElement cardNode)
            : base(cardNode)
        {
            Focus = (string)cardNode.Element("focus");
            if (String.IsNullOrEmpty(Focus))
                ParseWarning("Focus");
        }
        #endregion

        #region Properties
        public override CardType CardType
        {
            get { return CardType.Ancestor; }
        }

        public override CardDeck DeckType
        {
            get { return CardDeck.Fate; }
        }

        public string Focus
        {
            get { return _Focus; }
            set { _Focus = value; }
        }

        #endregion
    }
}
